home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / shutdown.z / shutdown
Encoding:
Text File  |  2001-04-17  |  4.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. sssshhhhuuuuttttddddoooowwwwnnnn((((1111MMMM))))                                                      sssshhhhuuuuttttddddoooowwwwnnnn((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      shutdown - shut down system, change system state
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ccccdddd ////;;;; ////eeeettttcccc////sssshhhhuuuuttttddddoooowwwwnnnn [ ----yyyy ] [ ----gggggrace_period [ ----iiiiinit_state ] [ ----pppp ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      This command is executed by the superuser to change the state of the
  16.      machine.  By default, it brings the system down into the PROM monitor.
  17.  
  18.      The command sends a warning message and a final message before it starts
  19.      actual shutdown activities.  By default, the command asks for
  20.      confirmation before it starts shutting down daemons and killing
  21.      processes.  The options are used as follows:
  22.  
  23.      ----yyyy               Pre-answers the confirmation question so the command can
  24.                       be run without user intervention.  A default of 60
  25.                       seconds is allowed between the warning message and the
  26.                       final message.  Another 60 seconds is allowed between
  27.                       the final message and the confirmation, unless the grace
  28.                       period is less than 60 seconds, in which case the grace
  29.                       period is used.
  30.  
  31.      ----gggg_g_r_a_c_e__p_e_r_i_o_d   Allows the superuser to change the number of seconds
  32.                       from the 60-second default.
  33.  
  34.      ----iiii_i_n_i_t__s_t_a_t_e     Specifies the state that _i_n_i_t(1M) is to be put in
  35.                       following the warnings, if any.  By default, system
  36.                       state "0000" is used.
  37.  
  38.      ----pppp               If the new init_state is 0, ----pppp requests that the power
  39.                       be turned off after the system is shut down.  Only some
  40.                       systems support this.  For automatically turning the
  41.                       system back on, see _w_a_k_e_u_p_a_t(1M).
  42.  
  43.      The definitions of the _i_n_i_t__s_t_a_t_e values that _s_h_u_t_d_o_w_n accept are:
  44.  
  45.      state 0          Stop the IRIX system and go to the firmware monitor.  At
  46.                       this point it is safe to power down the machine.  The
  47.                       /_e_t_c/_r_c_0 procedure is called upon entering this
  48.                       _i_n_i_t__s_t_a_t_e to perform various system cleanup functions.
  49.  
  50.      state 1, s, S    Bring the machine to the state traditionally called
  51.                       single-user, which provides a quiescent system and a
  52.                       superuser shell running on the system console.  Upon
  53.                       entering this state, the system kills all user processes
  54.                       and unmounts all filesystems except the root (local
  55.                       filesystems may be remounted before the shell prompt
  56.                       appears, in some implementations).  The /_e_t_c/_r_c_0
  57.                       procedure is called to do these and various other system
  58.                       cleanup functions.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. sssshhhhuuuuttttddddoooowwwwnnnn((((1111MMMM))))                                                      sssshhhhuuuuttttddddoooowwwwnnnn((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      state 6          Stop the IRIX system and reboot to the state defined by
  75.                       the _i_n_i_t_d_e_f_a_u_l_t entry in /_e_t_c/_i_n_i_t_t_a_b.
  76.  
  77. CCCCAAAAPPPPAAAABBBBIIIILLLLIIIITTTTIIIIEEEESSSS
  78.      A superuser executing the /_e_t_c/_s_h_u_t_d_o_w_n command must have the
  79.      CCCCAAAAPPPP____SSSSHHHHUUUUTTTTDDDDOOOOWWWWNNNN, CCCCAAAAPPPP____KKKKIIIILLLLLLLL and CCCCAAAAPPPP____MMMMAAAACCCC____WWWWRRRRIIIITTTTEEEE capabilities in their permitted
  80.      set of capabilities to successfully perform the shutdown operation.
  81.  
  82. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  83.      init(1M), uadmin(1M), rc0(1M), rc2(1M), wakeupat(1M), inittab(4),
  84.      capabilities(4).
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.